/*
 * StaticView.cpp
 *
 *  Created on: 25/05/2014
 *      Author: javier
 */

#include "StaticView.h"

StaticView::StaticView(SDLWindow* window, SDL_Texture* texture, Positionable* object) {
	this->window = window;
	this->texture = texture;
	this->object = object;
	geometry.first = object->getX();
	geometry.second = object->getY();
}

void StaticView::render(Camera& cam) {
	SDL_Rect render = cam.getOffsetFromModel(geometry);
	window->renderTexture(texture, &render);
}

void StaticView::update() {

}

StaticView::~StaticView() {

}

